<template>
  <div>
    <div>
      <h4>查体</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="7">
          <div>
            <span>体重 </span>
            <el-input v-model="pgForm.physical_examination_input1" placeholder="" style="width: 50%;"></el-input>
            <span> kg</span>
          </div>
        </el-col>
        <el-col :span="7">
          <div>
            <span>身高 </span>
            <el-input v-model="pgForm.physical_examination_input2" placeholder="" style="width: 50%;"></el-input>
            <span> 米</span>
          </div>
        </el-col>
        <el-col :span="7">
          <div>
            <span>BMI </span>
            <el-input v-model="pgForm.physical_examination_input3" placeholder="" style="width: 50%;"></el-input>
            <span> kg/m²</span>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>血压 </span>
            <el-input v-model="pgForm.physical_examination_input4" placeholder="" style="width: 20%;"></el-input>
            <span> mmHg</span>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>体温 </span>
            <el-input v-model="pgForm.physical_examination_input5" placeholder="" style="width: 20%;"></el-input>
            <span> ℃</span>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>乳房左侧 </span>
            <el-select v-model="pgForm.physical_examination_value1" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>乳房左侧 </span>
            <el-select v-model="pgForm.physical_examination_value2" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>乳房右侧 </span>
            <el-select v-model="pgForm.physical_examination_value3" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>乳房右侧 </span>
            <el-select v-model="pgForm.physical_examination_value4" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>乳头 </span>
            <el-select v-model="pgForm.physical_examination_value5" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options3"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>乳头 </span>
            <el-select v-model="pgForm.physical_examination_value6" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options3"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>伤口 </span>
            <el-select v-model="pgForm.physical_examination_value7" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options5"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>伤口 </span>
            <el-select v-model="pgForm.physical_examination_value8" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options6"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col>
          <div>
            <span>腹部伤口 </span>
            <el-select v-model="pgForm.physical_examination_value9" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options4"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>腹直肌分离 </span>
            <el-input v-model="pgForm.physical_examination_input6" placeholder="" style="width: 50%;"></el-input>
            <span> (脐上1指处)</span>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>腹直肌分离测定 </span>
            <el-input v-model="pgForm.physical_examination_input7" placeholder="" style="width: 50%;"></el-input>
            <span> cm</span>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "physical_examination",
  title: "查体",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        physical_examination_input1: '',
        physical_examination_input2: '',
        physical_examination_input3: '',
        physical_examination_input4: '',
        physical_examination_input5: '',
        physical_examination_input6: '',
        physical_examination_input7: '',

        physical_examination_value1: '',
        physical_examination_value2: '',
        physical_examination_value3: '',
        physical_examination_value4: '',
        physical_examination_value5: '',
        physical_examination_value6: '',
        physical_examination_value7: '',
        physical_examination_value8: '',
        physical_examination_value9: '',
      },
      options1: [{
        value: '正常',
        label: '正常'
      }, {
        value: '异常',
        label: '异常'
      }],
      options2: [{
        value: '红肿',
        label: '红肿'
      }, {
        value: '包块',
        label: '包块'
      }, {
        value: '疼痛',
        label: '疼痛'
      }],
      options3: [{
        value: '正常',
        label: '正常'
      }, {
        value: '凹',
        label: '凹'
      }, {
        value: '裂',
        label: '裂'
      }],
      options4: [{
        value: '有',
        label: '有'
      }, {
        value: '无',
        label: '无'
      }],
      options5: [{
        value: '良好',
        label: '良好'
      }, {
        value: '异常',
        label: '异常'
      }],
      options6: [{
        value: '红肿',
        label: '红肿'
      }, {
        value: '硬结',
        label: '硬结'
      }, {
        value: '疼痛',
        label: '疼痛'
      }, {
        value: '裂开',
        label: '裂开'
      }],
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
